<?php
/*
 * ******************************************************
 * CALLED WHEN AN ITEM IS POSTED FOR JOBS CATEOGRY
 * ******************************************************
 */
require_once 'table.php';
$tbl=new Model_Table_BuyAndSaleAttr();
$values=array();
$values['item_id']=$item->getItem_id ();
$values['condition']=Params::getParam('condition');
$values['delivery_method']=Params::getParam('delivery_method');
$values['payment_method']=Params::getParam('payment_method');
$tbl->insert($values);
unset($values['item_id']);
$item->setTags(implode(',',$values));
$item->save();